<div class="jshop">
  <h1 class="jshop-titleheading"><?php print $this->category->name?></h1>
  <?php print $this->category->description?>  
  <!-- Begin: Sub Category -->
  <?php if (count($this->categories)> 1):?>
  <div class="box_cat">    
	<ul class="ew_ulcat fll">
    <?php foreach($this->categories as $k=>$category):?>		
		<li><a class = "product_link" href = "<?php print $category->category_link?>"><?php print $category->name?></a></li>       	
    <?php endforeach;?>
	</ul>        
  </div>
  <?php endif; ?>
  <!-- End: Sub Category -->
  
  <?php if ($this->display_list_products) { ?>
  <div class="jshop_list_product"> 
    
    <!-- Begin: Product filter -->
    <div class="product-filter">
      <?php include(dirname(__FILE__)."/form_filters.php")?>
    </div>
    <!-- End: Product filter -->
    
    <?php if (count($this->lists_prod)) {?>
    <div class="jshop">
      <?php foreach ($this->lists_prod as $k=>$product) { ?>
      <?php if ($k%$this->count_product_to_row==0) { ?>
      <div class="product_row clearfix">
        <?php } ?>
        <?php
	          if( ($k+1)%$this->count_product_to_row == 1 ) {
	            $divpos = " block-first";
	          } elseif ( ($k+1)%$this->count_product_to_row == 0) {
	            $divpos =" block-last";
	          } else { $divpos=""; }
	        ?>
        <div style="width: <?php print 100/$this->count_product_to_row?>%;" class="jshop_categ<?php echo $divpos; ?>">           
          <!-- Begin: Product -->
          <div class="product">
            <div class="name"> <a href="<?php print $product->product_link?>"><?php print $product->name?></a>
              <?php if ($this->config->product_list_show_product_code){?>
              <span class="jshop_code_prod">(<?php print _JSHOP_EAN?>: <?php print $product->product_ean;?>)</span>
              <?php }?>
            </div>
            <div class="product-image">
              <?php if ($product->label_id && getNameImageLabel($product->label_id)){?>
              <div class="product_label"> <img src="<?php print $this->config->image_labels_live_path."/".getNameImageLabel($product->label_id); ?>" alt="<?php print getNameImageLabel($product->label_id, 2)?>" /> </div>
              <?php } ?>
              <a href="<?php print $product->product_link?>"> <img class = "jshop_img" src = "<?php print $this->image_product_path?>/<?php if ($product->product_thumb_image) print $product->product_thumb_image; else print $this->noimage?>" alt="<?php print htmlspecialchars($product->name);?>" /> </a> </div>
            <?php if ($product->product_price > 0 || !$this->config->user_as_catalog){?>
            <div class = "jshop_price"> <span>
              <?php if ($this->config->product_list_show_price_description) print _JSHOP_PRICE.": ";?>
              <?php if ($product->show_price_from) print _JSHOP_FROM." ";?>
              <?php print formatprice($product->product_price);?></span> </div>
            <?php }?>
            <?php if ($product->product_old_price > 0){?>
            <div class="old_price"><strong>Old price: </strong><span>
              <?php if ($this->config->product_list_show_price_description) print _JSHOP_OLD_PRICE.": ";?>
              <?php print formatprice($product->product_old_price)?></span></div>
            <?php }?>
            <?php if ($this->allow_review) { ?>
            <div class="review-comment clearfix">
              <div class="review_mark"><?php print showMarkStar($product->average_rating);?></div>
              <div class="count_commentar"><?php print sprintf(_JSHOP_X_COMENTAR, $product->reviews_count);?></div>
            </div>
            <?php } ?>
            <div class="description"><?php print $product->short_description?></div>
            <?php if ($product->manufacturer->name) { ?>
            <div class="manufacturer_name"><?php print _JSHOP_MANUFACTURER;?>: <?php print $product->manufacturer->name?></div>
            <?php }?>
            <?php if ($product->product_quantity <=0 && !$this->config->hide_text_product_not_available){?>
            <div class = "not_available"><?php print _JSHOP_PRODUCT_NOT_AVAILABLE;?></div>
            <?php }?>
            <?php if ($this->config->show_tax_in_product && $product->tax > 0){?>
            <span class="taxinfo"><?php print productTaxInfo($product->tax);?></span>
            <?php }?>
            <?php if ($this->config->show_plus_shipping_in_product){?>
            <span class="plusshippinginfo"><?php print sprintf(_JSHOP_PLUS_SHIPPING, $this->shippinginfo);?></span>
            <?php }?>
            <?php if ($product->basic_price_info['price_show']){?>
            <div class="base_price"><?php print _JSHOP_BASIC_PRICE?>: <?php print formatprice($product->basic_price_info['basic_price'])?> / <?php print $product->basic_price_info['name'];?></div>
            <?php } ?>
            <?php if ($this->config->product_list_show_weight && $product->product_weight > 0){?>
            <div class="productweight"><?php print _JSHOP_WEIGHT?>: <?php print formatweight($product->product_weight)?> <?php print _JSHOP_WEIGHT_UNIT?></div>
            <?php }?>
            <?php if ($product->delivery_time != ''){?>
            <div class="deliverytime"><?php print _JSHOP_DELIVERY_TIME?>: <?php print $product->delivery_time?></div>
            <?php }?>
            <?php if (is_array($product->extra_field)){?>
            <div class="extra_fields">
              <?php foreach($product->extra_field as $extra_field){?>
              <div><?php print $extra_field['name']; ?>: <?php print $extra_field['value']; ?></div>
              <?php }?>
            </div>
            <?php }?>
            <?php if ($product->vendor){?>
            <div class="vendorinfo"><?php print _JSHOP_VENDOR;?>: <a href="<?php print $product->vendor->products;?>"><?php print $product->vendor->shop_name?></a></div>
            <?php }?>
            <div class="buttons">
              <?php if ($product->buy_link){?>
              <a href="<?php print $product->buy_link?>" class="addtocart" title="<?php print _JSHOP_BUY?>"><?php print _JSHOP_BUY?></a>
              <?php }?>
              <a href="<?php print $product->product_link?>" title="<?php print _JSHOP_DETAIL?>"><?php print _JSHOP_DETAIL?></a> </div>
          </div>
          <!-- End: Product --> 
          
        </div>
        <?php if ( ($k%$this->count_product_to_row==$this->count_product_to_row-1) || ($k==count($this->lists_prod)-1) ) {?>
      </div>
      <?php } ?>
      <?php } ?>
    </div>
    <?php } ?>
  </div>
  <?php } ?>
  <!-- Begin: Pagination -->
  <div class="pagination"><?php print $this->navigation_products?></div>
  <!-- End: pagination -->   
</div>